first, Word-wrap use:Grammar: Break-wordvalue Description:1, Normal is the default value, when its value for the normal control of continuous text wrapping (allow the content to open the boundaries of the container, in other words, the content can
Recently, some customers have reported that the website shop format is disordered and the contact style is disrupted. I don't know why the form is seriously changed. I am tortured to view the template, there is no problem with the template, and
Cssword-break: break-all and word-wrap: break-word can automatically wrap the content of a container such as DIV. However, there is a difference between the two. This article introduces the difference between css automatic line feed word-break:
Word-break: Break-all and word-wrap: Break-word can automatically wrap the content of a container such as Div.
Their differences are:
1. Word-break: Break-ALL: for example, if the DIV width is PX, its content will be automatically wrapped in PX. If
What are these two things, I believe there are still a lot of people confused, will only be rote writing a word-wrap:break-word;word-break:break-all, such things to force the segmentation, or because these two things are too awkward, The same length,
In Div, text la s often occur, and line breaks are messy.Problem description: 1. If it is a full English string, it does not contain any symbols (including spaces) and does not wrap automatically.2. If the English and Chinese characters are mixed, a
HTML blank character processing rules
In HTML, "Blank Space" includes space, tab, and line feed (CR/LF.
We know that by default, all blank characters in the HTML source code are displayed as spaces, and multiple consecutive blank characters are
Today, I encountered a text line break in TD text, and found that the text is: white-space: nowrap, that is, force text not to wrap. By the way, I checked the text line feed attribute word-wrap, which is summarized as follows: the default value of
1. word-break: break-all: for example, if the div width is PX, its content will be automatically wrapped in px. If the end of the line has a long English word (congratulation, etc ), it truncates the word and converts it to the backend part of the
Today encountered TD text content does not wrap, found that: White-space:nowrap, that is, forced text does not wrap, by the way, the text wraps the property Word-wrap, summarized as follows:
The default for White-space is normal, which wraps
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.